//
//  YTMacro.h
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/4/27.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#ifndef YTMacro_h
#define YTMacro_h

/// NSUserDefaults - keys
#define kCountryCodeCache   @"CountryCodeCache"
#define kCityCache          @"CityCache"
#define kInlandFlightCache  @"InlandFlightCache"
#define kForeignFlightCache  @"ForeignFlightCache"

#define kUserIdDefaults     @"UserIdDefaults"
#define kUserToken          @"UserToken"
#define kRongYunToken       @"InPutRCKEYTokenValue"
#define kTargetUserID       @"targetUserID"
#define kUserPassword       @"UserPassword"

#define kDeviceToken        @"deviceToken"

// key - secret...
#define kRCKey              @"qd46yzrf4smrf"
#define kUMKey              @"56f8ee1767e58ef6ae00186a"
#define kQQKey              @"1105195698"
#define kWXKey              @"wxc31e316b293bb989"
#define kWXSecret           @"SDUIFJHWSHJDBFKSBVASVFGHNVUEJGVB"
#define kSinaKey            @"1610395310"
#define kSinaSecret         @"9d49903d796e461968b6ac1f7ada4755"
#define kAMapKey            @"aaf4ce2bad362fd8f2082b83a4ff9446"
#define kPushKey            @"I85M3U49GBBN"

// width - height
#define kScreenWidth    [UIScreen mainScreen].bounds.size.width
#define kScreenHeight   [UIScreen mainScreen].bounds.size.height

// color
#define kMainBlueColor [UIColor colorWithRed:0.26 green:0.62 blue:0.97 alpha:1.00] // 主题蓝
#define kViewBackgroundColor [UIColor colorWithRed:0.94 green:0.94 blue:0.96 alpha:1.00] // 视图控制器背景灰
#define kNaviBottomLineColor [UIColor colorWithRed:0.80 green:0.80 blue:0.82 alpha:1.00] // 导航栏下面的那条黑线颜色
#define kSaperatorLineColor [UIColor colorWithRed:0.80 green:0.80 blue:0.82 alpha:1.00] // 分割线
#define kBlackColor [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1] // 字体统一颜色黑
#define kGrayColor [UIColor colorWithRed:153.0/255 green:153.0/255 blue:153.0/255 alpha:1] // 字体统一颜色灰
#define kOrangeColor [UIColor colorWithRed:255/255.0 green:96/255.0 blue:0/255.0 alpha:1] // 价钱橘黄色
#define kRedColor [UIColor colorWithRed:0.93 green:0.33 blue:0.38 alpha:1.00] // 红色,有点儿近粉

// 判断
#define isDriver [YTUtilityManager manager].userModel.userRoleNew == 2
#define isDriverTeam ([YTUtilityManager manager].userModel.userRoleNew == 6 || [YTUtilityManager manager].userModel.userRoleNew == 7)

#endif /* YTMacro_h */
